package com.google.code.flabbyraffle;

import java.util.ArrayList;
import java.util.List;

public class TicketNumbers extends ArrayList<Integer> {
    private static final String WHITE_SPACE = "\\s";

    public TicketNumbers(String ticketNumberText) {
        String[] ticketNumberStrings = ticketNumberText.trim().split(WHITE_SPACE);
        for (String ticketNumber : ticketNumberStrings) {
            this.add(Integer.parseInt(ticketNumber.trim()));
        }
    }

}
